fix NameError when opening uncompressed file

This simple change fixes a NameError in dynamo2xyz which occurs when opening an uncompressed file.