python port of mircheck and a barchart tool