Fix incorrect indention of close statement

Commit 8ea1c74e2f0f707bf8f80947dab5a23495f9607a moved the f.close()
statement to the wrong indention level, thereby closing the file
prematurely when reading Datagroups from a file. Since files are closed
automatically due to the with statement, we just remove the explicit
call to close().