applied 2to3.
made code compatible with Python2.
Merge pull request #5 from gst/2to3

Add python2 support via 2to3 compatability