attempt to fix pyQode/pyQode#9