[Python-ideas] open functions in dbm submodule need to support path-like object