remove self.assert statements

use assert_, assert_equal, etc. instead.
remove unnecessary check in basinhopping

also remove unused class in test__basinhopping.py