[yams] deal with py3k string types and builtin module [applied]