debug function in pygmap3.py