ported all the PEV code to python using PEfile to reduce FD usage and PID usage