more fixes for python3

Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
Merge pull request #86 from chirayudesai/python3-fixes

more fixes for python3