Bugfix for And/Or operators in Python.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>