port parsing/fetching logic to python