Code written while reading the book "Test-driven web development with Python" by Harry Percival (hjwp)