ssh output parsing python