Reverse Function In Python In String