python3 support
moved query encode in own function
cleanup
Merge pull request #3 from rbaier/python3

Python3 support