Rewrote CPU usage script in python