solve rubik's cube puzzle by Python