Implement IRC parser by python