Proper Orthogonal Decomposition Python