simplified some conditional constructs based on the major version of python
removed unnecessary use of PyString_AsStringAndSize
Merge pull request #293 from rvianello/python3-minor-cleanup

python3 minor cleanup