Update yate.py to accept input