code cleanup and python3 support
Merge pull request #19 from ros/py3

code cleanup and python3 support