General code cleanup

This still needs more work but it's a step forward in the right Python-like direction.
I didn't test too much setup.py script changes but I'm planning to Debianize that stuff
at some point. The PR here is just so that the code doesn't diverge too much.

PS: Original repo name probably needs a better name.

-Srdjan
sgnn7@sgnn7.org
@muelli For this one, I personally consider it a constant. From PEP8:
```
Constants are usually defined on a module level and written in all capital letters with underscores separating words. Examples include MAX_OVERFLOW and TOTAL.
```