python: Implement command redirection in execute