pep8
pep8
reformatted to clarify code
added test, which shows issue reported in #35
request body should be represented by bytes

fix #35