Simplemente crea las funciones que hagan eso:
Por ejemplo:
Código Python:
Ver originaldef print_people(people):
for person in people:
print "Name: %(Name)s, Height in meters: %(HeightMeters)s, Height in inches: %(HeightInches)0.2f" % person
...#Some functions here
def main():
...#Some code here
print_people(people)