check required python modules first