Do a secure command line intepreter with python