gtpython: add more explicit func declarations
gtpython: many type declaration fixes
Minor change for alphabet.py test to pass