File transfer protocol in python