How To Use End Function Python Code