ctdb-build: Use open() instead of file() for python3