Missing () in f.close() fix. Cleanups