BUG: PY2 support for @singleton