Add helper function for bug listing script