Fix memory leaks with event handling in conn.c
Tabs to spaces
Add .py files to gitignore
Move to new buffer protocol
Move to Python 3 compatible codebase
whitespace and free