Python3 support and list alignment

Hi

I want to contribute patch for Python 3 support.
This patch also includes changing alignment to make easier to distinguish class methods and global functions.

![Screenshot](http://storage1.static.itmages.com/i/13/0922/h_1379823886_6465630_7ce7f5f360.png)