Python menu jail to provide secure access to a system