object type map has no len(), put map() in list(), runtest works now. (possibly python3 issue)