Minor fixes

These are minor stuff I found out while reading trough the code, nothing more than a proofreading and some fixes about python2.7 / python3k.