def getabovethresh(inputlist,thresh):
    """creates a binary list, indicating comparison of
inputlist entries to thresh value
1 if above (exclusive), else 0"""
    abovethreshlist=[1 if i>thresh else 0
                     for i in inputlist]
    return abovethreshlist