Several fix

1. Fix the issue with Sublime Text 3(#4).
2. Fix the layout in `message_dialog`.
3. Format the code to meet PEP8 standard.