how python is useful to solve problems