Update basic.py

Fix error if .gngeo does not exist.