Code cleanup

a few PEP8-related cleanup, in order to have a more hacker-friendly code. The more your code follows the general Python guidelines, the more pythonistas could help.