Reverse The Code In Function Python