Updated for Python 3.3

Updated for Python 3.3 using 2to3.py-script and further necessary
adjustments. Checked during its use in ROS.