Simple Python script to parse a command output using Python "exec"