Update transfer.py

Added more functions, ready to start writing main function