Python Create Complex Data Structures