Added Uncategorized category, refined Python script