Something like this breaks
script = export PYTHONPATH=$PYTHONPATH:/fs3/c01/c01/jtg2/chemsh-py, module swap PrgEnv-cray/5.2.82 PrgEnv-intel/5.1.29, module swap intel intel/15.0.2.164, module swap cray-mpich cray-mpich/7.2.6, module unload cray-libsci, module unload xalt, module load anaconda-compute/python3
set the maxsplit param in the re.split call to fix.