Lots of good stuff already in the comments! Here are some examples/tutorials I wrote on my blog:
- A TDD approach for building a simple microprocessor model in Python: http://joaoventura.net/blog/2017/simple-microprocessor/
- Building a basic HTTP Server from scratch in Python: http://joaoventura.net/blog/2017/python-webserver/