Bug fixes in main.py

- Fixed stderr as sys.stderr
- Handles both input file and command line args for input
Merge branch 'master' of https://github.com/dkong1796/ay190-final