Misc patches for pySphere

2 patches for improving pySphere