[Python] switch to numpy arrays

20 jobs for devel in 4 minutes (queued for 1 second)