python file for generating thrift file for scons