How To Use End Function Python