parses ab output into Python class