Cpu Count Python String Manipulation