Restricting numpy imports