Update StringIO imports
Fix json data tests
Fix ftp binary strings
Fix decode
Remove unicode_escape for received payload
PEP8 updates
Use BytesIO for python3
Update IO unittest
Update temporary file mode