Added rotate program in python. Then sped it up.