I have gone over the shlex and cmd and so, but none of them are satisfactory. However, I tried to program this this function on my own and found it pretty easy.
Thank you so much for the suggestion, after all. -- http://mail.python.org/mailman/listinfo/python-list