def get_file_contents(filepath, mode='r'):
 with open(filepath, mode) as f:
  return f.read().decode('utf-8')

def get_file_contents ( filepath , mode = 'r' ) : with open ( filepath , mode ) as f : return f . read ( ) . decode ( 'utf-8' )
gets the contents of a file .