def main():
    print('exodus, starting up...')
    redis_db = redis.StrictRedis(host=REDIS_HOST, db=0)
    print('connected to redis')
    psql_db_conn = psycopg2.connect(dbname=PSQL_DB_NAME)
    psql_db_conn.autocommit = True
    psql_db_cur = psql_db_conn.cursor()
    print('connected to postgres')
    main_loop(redis_db, psql_db_cur)
def main():
    print('exodus, starting up...')
    redis_db = redis.StrictRedis(host=REDIS_HOST, db=0)
    print('connected to redis')
    psql_db_conn = psycopg2.connect(dbname=PSQL_DB_NAME)
    psql_db_conn.autocommit = True
    psql_db_cur = psql_db_conn.cursor()
    print('connected to postgres')
    main_loop(redis_db, psql_db_cur)