python 3 compatibility (undo https://github.com/ros/genmsg/commit/452770331217f46f37d2de976fb5d8b0b24fb831#diff-b6effb935cd6db1e571a7690aa0d4973L90)