Python3 support

Hi, changes makes the mangler workable with python v3.3.1 for me

Please review :)