[issue3992] set/get use cases for 'env' and new 'set_env' magic

proposed fix for https://github.com/ipython/ipython/issues/3992
thanks, fixed