Switching Between Python Function Declaration