you need a full white list imho. supported types are basestring and list, nothing else (ie also no tuple)