[python] Send a file through sockets in Python