Fixed ordering of nx and ny in glib.py