Update pycgminer.py

Fixed issue #1.  Doing it this way allows it to work on remote cgminer instances.