Create sp.py

Generated by sp_handcoded.py.