Not deepcopying a function---gives us IronPython support.
Add try/except clause and treat IronPython separately.
Merge branch 'master' into nocopyfunc
Merge pull request #1128 from chebee7i/nocopyfunc

Fix for IronPython and types.FunctionType. Closes #949 #1127