Matrix Methods Analysis using python