Port create_categories.py to core

Change-Id: Id170af5a909918a56f4868665ff38333e30e37ca
Merge "Port create_categories.py to core"