def init_db()

in application.py [0:0]


def init_db():
    try:
        ddb_table.describe()
    except JSONResponseError:
        print "DynamoDB table doesn't exist, creating..."
        create_table()