Make Opencafe compatible with python 3.4

This patch fixes compatibility issues with python 3.4.

Change-Id: I9de54f473aca4115664d64adbd8b26e7cf8c8389
Merge "Make Opencafe compatible with python 3.4"