Formatting, fixing __new__ for python3.
Updating stencil for python3 support