adapt to NumPy 1.7 API
use try..else -> not hiding ImportErrors
disable deprecated NumPy API