Fix issues in osrc.py