Add failing test for Python expressions

This was reported on #pyramid by varesa