[lit] Use py2&3 compatible exec() syntax.