ticket:9 Use StringIO instead of a file
Merge branch 't9_command_fix_bug'