Make it executable with hashbang.
Use list instead of dict.
More readable parse code.