def validate_python_path(ctx, param, value):
    if isinstance(value, (str, bytes)):
        if (os.path.isabs(value) and (not os.path.isfile(value))):
            raise BadParameter(('Expected Python at path %s does not exist' % value))
    return value
def validate_python_path(ctx, param, value):
    if isinstance(value, (str, bytes)):
        if (os.path.isabs(value) and (not os.path.isfile(value))):
            raise BadParameter(('Expected Python at path %s does not exist' % value))
    return value