Python - Como reducir este código?

Filtrado por el usuario: RAY
<<>>
Filtrado por el usuario 'RAY' (Eliminar fitro)
 
Vista: