Make pycuba compatible with cuba 3.1 - 3.3