Make gitlab compatible with Python 2.6 (for example still used in RedHat...

Hi,
this pull request makes gitlab module compatible with Python 2.6 (for example still used in RedHat 6).

Thanks,

Jiri