1. Improved error handling
2. Coding style more conforming with PEP-8
3. Better defaults in test settings and production.