def import_crew(): temp = Ship() genetics = import_genetics() seed = [] for _ in range(100): mate = Crewmate() mate.set_sex() mate.set_name() mate.adult = True create_genome(mate, genetics) seed.append(mate) temp.crew = seed # while len(temp.crew) < 101: # temp.breed_all() # print "breeding" temp.breed_all() del temp.crew[0:100] for mate in temp.crew: mate.age = int(20 * random.random()) + 15 mate.become_adult() return temp.crew