add twitter relation function.
fix main_handler.py.