ipymel: update for ipython 0.11
factories: issue deprecation warning for deprecated functions only when they're actually used