fill in missing part of python/nplm.py; allow user to specify initialization range
user-selectable activation and loss functions