Maximum Function Count Python Function Definition