add pyc as ignore
fix os basedir imprt for py.py