added kline.py, func_kline.py and test.py