def rotateTop(self):
        """ does rotate the cube to the top """
        help        = self.top
        self.top    = self.front
        self.front  = self.bottom
        self.bottom = self.back
        self.back   = help
        return self
 does rotate the cube to the top 
recipes/Python/578454_Puzzle_Four_cubes_different_colors_their/recipe-578454.py