Make it compatible with python < 2.7 + bugfix in utils

Init of dictionnaries won't work with python version < 2.7. There are still some people forced to work with 2.6 out there :) 
And a quick fix to handle non integer primary keys