fix thriftapp import 'not callable' error