update __main_ for rest.py to accept input
implement user input in __main__ function of rest.py