Port to Python 3

The tests all pass, but I haven't verified that mgp2pdf produces the
desired output on Python 3.
Make %filter work on Python 3
Mention Python 3 problems