python Filter speed optimisation (remove string concats) + fixes to demo spec