redesigning python api: rewrited builtin, string and packet