Fix compatibility with python 3.4.0 on sailfish OS