pyldb: Apply flags specified by ldb.Ldb(flags=...) even if the URL is not set