Handle short and full version of numpy