update core.py
add KDJ and update test and fix core.py bug