The above seems overly verbose. 
You could probably do:
```
operator_wildcards = {
    '~': '*%s*',
    '$': '%s*',
    '^': '*%s'
}
if param.operator in operator_wildcards:
    args['%s.full__wildcard' % name] = operator_wildcards[param.operator] % param.value 
```