Used splitlines instead of split('\n') (thx to jpcw)
show_category uses new pkgin sc output