core lib for python