A python module as an alt to default exec() fun , with new features : )
For getting return and logging from exec and also limit cpu time and ram usage...
Use: from Exelib import exec_
pip install ExeLib
__reexec__ <whatever you want to return>
__logging__ <whatever you want to log>
exec_("bla bla bla" , auto_return = "<something you want to return , when the program crashes>")
rets , logs = exec_("bla bla bla")
exec_(cmd,cpu_t= <time in seconds>)
exec_(cmd,ram_u= <max-size>)