numpy, no homgeneous, but not fast enough