The mpmath provides global context objects (mp, fp, iv). Most functions in the global mpmath namespace are actually methods of the mp context.
It would be better, if we could introduce an explicit notion of the current context, that will prevent issues like #657, something more close to gmpy2 contexts handling. (Another example that worth considering is the bigfloat package.)
The current interface also is not thread-safe.