Add data.txt from python4astronomers and update section 7.2.1 for file objects