Add DictMixin/OrderedDict to theano.compat in PY3.

Reordered for ease of reading (same order in if/else).
Merge pull request #2318 from dwf/fix_compat

Add DictMixin/OrderedDict to theano.compat in PY3.