added a decorator for applying an environment to a function context.
added functools.wraps as per @richafrank
Merge pull request #92 from quantopian/noop_env_fix_1470

added a decorator for applying an environment to a function context.