Try Finally Return Python Function