def executableByOthers(executable):
    st = os.stat(os.path.expandvars(executable))
    return bool((st.st_mode & stat.S_IXOTH))
def executableByOthers(executable):
    st = os.stat(os.path.expandvars(executable))
    return bool((st.st_mode & stat.S_IXOTH))