Consistently use with open() in all examples