>>> print '"Hello,\\nworld!"'.decode('string_escape')
"Hello,
world!"