Fixed tempnet_regd for python2.7