def name_plus_version(name):
    """A weird name for a function (I couldn't think of anything better), This
       function adds name by version. name=tcl or tk
       while version=the version of name.
       This function is used for setting required env variables."""
    if name == 'tcl':
        try:
            import tkinter
            tkv = tkinter.TkVersion
        except:
            import Tkinter
            tkv = Tkinter.TkVersion
        finally:
            tkv = str(tkv)
            a = name + tkv
            return a
    elif name == 'tk':
        try:
            import tkinter
            tclv = tkinter.TclVersion
        except:
            import Tkinter
            tclv = Tkinter.TclVersion
        finally:
            tclv = str(tclv)
            a = name + tclv
            return a
    else:
        error = (
            'is not a valid argument for name. Valid arguments are "tcl" or "tk".'
            )
        error = "'" + name + "' " + error
        raise SyntaxError(error)
