Loading .txt fails on Linux but works fine on mac

 url = "http://download.cms.gov/some_filename_.zip"
 dest_dir = "dataset"
 filename = dest_dir + "/" + url.split("/")[-1].split(".")[0]+".txt"
 drugs = pd.read_table(filename)

Above lines work fine on mac os but somehow fail on Linux. When I print the file name, both give the same output, 'dataset/some_filename_.txt'. The error message I got on linux is

 can't find b'dataset/some_filename_.txt' file. 

It is strange because there IS the file in the directory. Need help!