Reducing dependency even more on numpy