[MRG] Get rid of "DeprecationWarning: using a non-integer number instead of an integer" when running the tests

This addresses #3398. As far as I could see I removed all of them except a couple in hmm.py which I thought wasn't worth touching since it is going away.