Simple reverse in python