Ensure all data gets send in Python TCP client.