Have you tried re.UNICODE to avoid line 147
<pre>
unicode(source.strip().....
</pre>