Allow passing of kwargs to theano.function.
Made python2.6 compatible.
Implement __contains__ for SingleFiniteDistribution.

Fixes issue 3964: Test failure in master: __contains__ deprecated in test_finite_rv.py
https://code.google.com/p/sympy/issues/detail?id=3964
Properly reset warning filters in tests.

Fixes issue 2492: Better way to test warnings
https://code.google.com/p/sympy/issues/detail?id=2492
Increment stacklevel when wrapping warnings.warn().
Print enhanced asserts' lhs and rhs each on its own line.
Add missing __future__ import print_function.
add dtypes to tests
reword keyword arg handling in theano_function
add test ensuring theano_function fails on bad input
use integer division in blockmatrix test
replace dict comprehension with dict(tuple gen)
Merge pull request #1 from mrocklin/unused-args-2

A variety of small fixes
Merge branch 'master' into tests2
XFAIL test_args entry for TransformationSet (now deprecated).
Update residue_ntheory.py

simple patch to use optimized pow(a,x,n) for a**x % n, makes it MUCH faster for big numbers
Update residue_ntheory.py
Properly deprecate TransformationSet.
Merge pull request #2358 from moorepants/unused-arg

Allow passing of kwargs to theano.function.
Merge pull request #2371 from QuaBoo/patch-1

A simple pow() optimization