python toolkit for NPRL