Use constant os.SEEK_SET instead of 0