Array From Range Python Function Definition With Types