def GuessLanguage(filename):
  try:
    (_, extension) = filename.rsplit('.', 1)
  except ValueError:
    raise ValueError("Could not guess language as '%s' does not have an \
        extension"%filename)

  return {'c'   : 'c'
         ,'py'  : 'python'}[extension]
Attempts to Guess Langauge of `filename`. Essentially, we do a
dataset/ETHPy150Open spranesh/Redhawk/redhawk/utils/util.py/GuessLanguage