Fixed HTML escaping in eval python expressions

And some test cases