def checkEval(str1):
    """checks string for potentially malicious inputs for eval function"""
    str1 = str(str1)
    excludes = ['import', '__', 'os', 'sys', 'eval', 'exec', 'compile',
        'open', 'write', '\n', '\t']
    for i in range(len(excludes)):
        if excludes[i] in str1:
            return False
    return True
