Added IO exception handling to pdb2sphere.py