Update format_stack.py

fix format_stack in python2 if parameter value repr of delayed function contains non-asxii symbol