corrected code and documentation to reflect Python 2.7 changes and Windows use