Update toandfro.py