add py3compat.py and modify README for Mac OS X