Precompilation of expressions (python part)

Added changes to python expression parser to be compliant
with JS expression parser after CR
https://review.openstack.org/#/c/117272/

Change-Id: I83e9742ab9755c505513e7c405f0d63c5c8a60b3
Merge "Precompilation of expressions (python part)"