a log parse tool based on python