Review

 * PEP8 fixes to make it passed
 * Review inline comments
 * A little bit cleanup


+ it's all it's a good idea to store default settings in settings.py or in ini configuration file.

PS. Since these diffs I didn't run it, so merge could be dangerous.