Create Array Range Python Step Function