def _user_exists(username):
    """ Check if the given username exists as a system user
    """
    with open('/etc/passwd', 'r') as f:
        ep = f.read()
    return ep.find(username) > 0
dataset/ETHPy150Open chapmanb/cloudbiolinux/installed_files/ec2autorun.py/_user_exists/original