In python 3 file is no more a builtin type