Port makecat.py to core

Change-Id: I6237bf38b6120e54ba669ebcac39cce561138bfc
Merge "Port makecat.py to core"