now works in python3 and handles binary file transmission better