Added Python 3 compatibility

Added a few lines of code to get duo_web working with Python 3.x as well (otherwise exceptions occur for missing str-to-bytes conversions). Tests run fine under Python 2.7 and 3.3.