Fixes for bytestring handling
Fixed tests
Merge pull request #4 from joonahoi/master

Byte string handling for http.py and test fixes