Fix errors in osrc.py script