add gen_ans.py and buyrate calculation