Python Function To End Program