update code to work with python 3
fix code style
enable Python 3.3 on Travis
Merge pull request #84 from ros-infrastructure/py3

cleanup code style, fix Python 3 issues on the way