Update cmd.py to allow addition of users

I still think it is necessary to allow addition of users directly.
Besides, there is no problem in my program. The code you wrote never closes dat_users, either.