checks for required python modules before running