Cast filter to list for py3k compat