Updates for Python 3.4

For info, my actual ``./manage.py makedoc`` output is slightly different under Python 3.4 vs Python 2.7, in that there's occasionally an extra ``<div>`` and some HTML entities get explicitly encoded, e.g. in our Django Project setup docs I get the diff:

```
-<div class="highlight-python"><pre># OSX change terminal colours
-export TERM="xterm-color"
-PS1='\[\033[0;36m\]\u@\h\[\033[0m\]:\[\033[0;33m\]\w\[\033[0m\]\$ '</pre>
+<div class="highlight-python"><div class="highlight"><pre># OSX change terminal colours
+export TERM=&quot;xterm-color&quot;
+PS1=&#39;\[\033[0;36m\]\u@\h\[\033[0m\]:\[\033[0;33m\]\w\[\033[0m\]\$ &#39;
+</pre></div>
```

These look to be pretty cosmetic changes so I don't think it should stop a merge of these two commits which do deliver a working Python 3 ``./manage.py makedoc`` + navigating the built HTML docs through a server.