Separate solutions for numpy and standard python