Python target support

Add additional checks for process stdout and stderr parsing to fix
parsing issues