Fix malformed makeqstrdata generated file when using python 2.7