Fixed syntax and unicode encode errors.

This fixed some errors in the run.py file.
```
  File "run.py", line 48
    print()
        ^
SyntaxError: invalid syntax
```
```
  File "run.py", line 5
    from __future__ import print_function
SyntaxError: from __future__ imports must occur at the beginning of the file
```
```
Traceback (most recent call last):
  File "run.py", line 78, in <module>
    sys.exit(run(args))
  File "run.py", line 45, in run
    f.write(link.after)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 125: ordinal not in range(128)
```