first of many modifications for nxt-py 2.2