Download files with python using js2py

I have HTML webpages that I am crawling using xpath. The etree.tostring of a certain node gives me this string: