there is no need of f.close() because with open... does that