Cleaning in the code

* Replaced iteritems by items to be compatible with python3
  (not everyone is still living in prehistory ;-) )
* Removed useless imports (it's so Ugly!)
* Some (very minor) refactoring, just to have a cleaner code

(A quite useless commit in fact)