For lists, use a tuple as default, since it's immutable.
def foo(allowed=()):
truthy = ['true', 'True']
truthy += allowed # most things work
allowed.append('yes') # error
It's not perfect (`truthy = ['true', 'True'] + allowed` will not work).