Port commonscat.py to core

Change-Id: I6ce4d3a4e75c6c3a81bb6fd05d3613c4437b2847