Copy of fbthrift Python library