My understanding of linear independance is that if you have a unique solution after rref, it's linear independant. If you have multiple solutions or no solution, it's not linear ...
NumPy includes some tools for working with linear algebra in the numpy.linalg module. However, unless you really don’t want to add SciPy as a dependency to your project, it’s typically better to use ...