A flexible python command-shell