python tornado singleton