Reverse Function In String In Python