def read_py_file(filename, skip_encoding_cookie=True):
 with tokopen(filename) as f:
  if skip_encoding_cookie:
   return ''.join(strip_encoding_cookie(f))
  else:
   return f.read()

def read_py_file ( filename , skip_encoding_cookie = True ) : with tokopen ( filename ) as f : if skip_encoding_cookie : return '' . join ( strip_encoding_cookie ( f ) ) else : return f . read ( )
read a python file .