Added stat_log and stat_log by key to python binding