g.py updated with a simple test