def shell_exec(command):
out = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[<NUM_LIT:0>]<EOL>return out.decode('<STR_LIT:utf-8>')<EOL>
Executes the given shell command and returns its output.