spogro.py cleaned up