fixed TypeError "Expected str, got unicode" under Python 2.7

This commit solved https://github.com/monome/libmonome/issues/22 for me under Python 2.7.