Python tools for the HDUST code