RF: avoid import error for numpy 1.2

measure function not present in numpy 1.2