Scripting program in python to tokenize commands (front end of bash shell)