Updated to work with latest Python 3.3.3

Minor tweaks to get it working with Python 3.3.3, mainly converting between bytes<>string