How to calculate Singular Value Decomposition from scratch with Python