def create_topic(topic_name):
 pubsub_client = pubsub.Client()
 topic = pubsub_client.topic(topic_name)
 topic.create()
 print 'Topic {} created.'.format(topic.name)

def create_topic ( topic_name ) : pubsub_client = pubsub . Client ( ) topic = pubsub_client . topic ( topic_name ) topic . create ( ) print 'Topic {} created.' . format ( topic . name )
create a new pub/sub topic .