Create Array Range Python Function