BUGFIX: using os.O_RDONLY and close file using os.close(f) since we are using the fdno