Python 2.4 and 2.5 compatibility
Use PyByteStr_AsStringAndSize macro for dryness
Add PyByteStr_Check macro for dryness and uniformity