Create Array And Append Python Function