support for resources manager and python 3