Fix python syntax in filtering docs