import addressbook_pb2

addressbook = addressbook_pb2.AddressBook()
p1 = addressbook.people.add()
p1.id = 1
p1.name = "<NAME>"
p1.email = "<EMAIL>"
phone1 = p1.phones.add()
phone1.number = "555-5555"
phone1.phoneType = addressbook_pb2.HOME

p2 = addressbook.people.add()
p2.id = 2
p2.name = "<NAME>"
p2.email = "<EMAIL>"
phone2 = p2.phones.add()
phone2.number = "666-6666"
phone2.phoneType = addressbook_pb2.MOBILE

print addressbook
import addressbook_pb2

addressbook = addressbook_pb2.AddressBook()
p1 = addressbook.people.add()
p1.id = 1
p1.name = "<NAME>"
p1.email = "<EMAIL>"
phone1 = p1.phones.add()
phone1.number = "555-5555"
phone1.phoneType = addressbook_pb2.HOME

p2 = addressbook.people.add()
p2.id = 2
p2.name = "<NAME>"
p2.email = "<EMAIL>"
phone2 = p2.phones.add()
phone2.number = "666-6666"
phone2.phoneType = addressbook_pb2.MOBILE

print addressbook