[MRG] FIX: remove deprecation warnings in learning curves under Python 3

Quick fix to kill a warning under Python 3. I will merge as soon as travis is green.