updated subprocess2.py