Change unnecessary uses of re.match() to .startswith()