Switching Between Python Function Example