thriftpy2 seems to support ipv6, but there is no configuration parameter in Entrance function  