Parser refactor

Split parser.py into smaller modules based on content similarities and re-imported the new modules into parser.py.