Turn on doctests in nose.
Remove unused import
Add 'the ' to expected output for question sections.

In 251e8b42904f8b16099208f29f1bb02a9b0393ea, a 'the' was introduced
to the title of sections containing questions, the test expected output
for the test needed updating to match.
Use unicode strings consistently for questions and answers to json.

We were being inconsistent on unicode/not for strings when creating
json from the questions and answers.

1) Make all the strings in the output unicode.
2) Call 'unicode' on the output of time.strftime calls as these
are inconsistent as in their own unicodeness (roll on Python 3).
Add model to represent batches of questions.

Questions are supplied in papers which contain multiple questions.
See http://www.parliament.gov.za/live/content.php?Category_ID=236
for a list of such papers.

This model is to allow us to store both the external (from the table)
and internal (from headers and titles) metadata of those files. The
hope is that this will help us in assigning answers to questions.
Make questionpapers unique on (year/issue) at database level.

There should be only one questionpaper per (year/issue) combination
so we may as well constrain this in the database.
Tiny bit of PEP8ification.
Shift parsing of question papers out of management command.

It's usually nicer for testing, etc, to have management commands
relatively thin so I'm shifting parsing of question papers to the
question_scraper module instead of directly in the management command.
lxml elements are lists so no need for list() calls.
Explicitly use just 'page' elements in the root.
Remove unnecessary indentation.

Find text element children rather than finding all children and
then ignoring those not text elements.
Remove unnecessary local variable.

pages is only used once, why not just make it in place.
Remove old debug code.

Count wasn't being used, and was clearly just from earlier debug,
so it might as well go.
Remove more unnecessary indentation.

We're only interested in the text elements, so no need to loop
over pages at all.
Remove more old debug.
Use requests rather than urllib2.

I'd forgotten to import urllib2 when moving something, but let's
just get rid of it altogether and use requests instead.
Remove some unused variables.
Some PEP8ification.

(Just whitespace).
Make more concise.

More code tidying
  - make use of ternary operator
  - don't bother naming very simple regex.
More PEP8 whitespace.