a ugly host switch plugin baseed on python