python matrix multiplication without numpy