A module for psychometric funciton fitting