snap open plugin further fixes

attempts to furter fix some python3 incompatibilities re gmate issue #116

here is some doc to help for anyone interested in taking it further http://docs.pythonsprints.com/python3_porting/py-porting.html