BF: apply correct fix to quartile test

I applied half of the fix in the previous commit by getting confused
with a git stash
NF: script to run examples

A python script to run examples and pump logs to specified directory.
RF: make examples compatible with Python 3

And therefore not compatible with Python 2.5.  But, if you want Python
2.5 badly, it's obvious what to do.
BF: make integer division explicit for python 3

Implicit integer division in finding colors in colormap.
BF: work round change in round() for python 3

round now calls to a ``__round__`` method, which is missing for numpy
arrays.
DOC: examples runner script in release checklist

Add examples runner to tasks to do before release.
FOX: explicitly set __doc__ for printing

print function detects implicit module ``__doc__`` as None; set
``__doc__`` explicitly where printed.
FIX: remove use of xrange from example

This allows the example to run in Python 3
FIX: update glm beta variance example for Py3

Future imports and print_function
FIX: further __doc__ and print updates

Adding print_function and explicit defines of ``__doc__``
FIX: fix fetch of only value from dict for py3

Examples using values()[0] - invalid in Python 3; changed to get item
``['0']`` which appears to be correct.
use_derivatives fix
BF: update before apt-get for travis build

See :
https://groups.google.com/forum/?fromgroups=#!topic/travis-ci/QbiuGF-8bNU
RF: add ability to run single example in script

Make current working directory default log directory.
RF: make script outputs strings for printing

In python 3 outputs from proc.communicate() come back as byte strings,
and they don't print well.  Convert to strings.
Merge pull request #225 from matthew-brett/py3-examples

MRG: Py3 examples

Add script to run examples and output logs. Inspired by PyMVPA's Makefile fragment for the same purpose, thanks to Yarik for that.

Modify examples to run in Python 3 and Python 2.

Add small code edits (in codebase rather than examples) to fix Python 3 incompatibilities left over from previous Python 3 port
BF + TEST: refactor fmri model inputs, add tests

FMRI model input checking is failing on python 3 because, in python 3,
strings have __iter__ attributes, and were therefore not being put into
a single element list as intended.

Some whitespace and docstring edits.
BF: change use of iteritems for python 3

Iteritems has gone in python 3 (items is an iterator already).
BF: add list around .values() for python 3

Python3 dict values method returns a generator, and can't be indexed;
make into an explicit list.
Merge pull request #235 from bpinsard/bug/groupwise_registration

use_derivatives fix

minor fix of use_derivatives, seems that the name given as parameters are not 'fmin_' prefixed (due to configure_optimizer specification), which could bring speed issue with powell or simplex optimizers.