import todo.db.init _database = None def init(path): global _database _database = todo.db.init.init(path) def cursor(): global _database return _database.cursor() def commit(): global _database _database.commit() def close(): global _database _database.close()