Python 3 compatability fixes

Signed-off-by: Zaar Hai <haizaar@haizaar.com>
Merge remote-tracking branch 'fsx/master'
Python 3.2 compatability fixes

Signed-off-by: Zaar Hai <haizaar@haizaar.com>
Merge pull request #70 from haizaar/master

Python 3 compatability