Added sg.py