Modified checkreqs.py from Professor - Needs testing on linux platform