Add test for writing non-byteish data
Fix pep8 in setup.py