cmd = (
    'enerCHARMM.pl -par param=x,xtop=topology_modified.rtf,xpar=lipid27_modified.par,nobuildall -out vdwaals {0}'
    .format(cmtup[1]))
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)
Python Subprocess: Too Many Open Files