<s> __author__ = '<STR_LIT>' <EOL> import subprocess <EOL> __child_subprocesses__ = [ ] <EOL> def create_subprocess ( command , ** kwargs ) : <EOL> child_process = subprocess . Popen ( command , ** kwargs ) <EOL> global __child_subprocesses__ <EOL> __child_subprocesses__ . append ( child_process ) <EOL> return child_process <EOL> def communicate_to_child_process ( child_pid ) : <EOL> get_child_process ( child_pid ) . communicate ( ) <EOL> def get_child_process ( child_pid ) : <EOL> global __child_subprocesses__ <EOL> for child_process in __child_subprocesses__ : <EOL> if child_process . pid == child_pid : <EOL> return child_process <EOL> def get_child_processes ( ) : <EOL> global __child_subprocesses__ <EOL> return __child_subprocesses__ </s>
