removed numpy deprecated features
removed numpy-1.7 features to make it compile with earlier versions of numpy