python library for research bent functions