cache thrift_file load

cache thrift_file load
the shebang is no correct here. thriftpy is for py2/3 and pypy. and let's use nosetests instead of a shell script.