get tps, qps from mysql

a python script  get tps, qps from mysql ,the  is base on com_* status ,this Method is Suitable for innodb engine