updated py install script - subprocess calls and exceptions