Port spamremove.py to core

Change-Id: I6c60bc70d5771080168f7df62192151ed16e83a3
Merge "Port spamremove.py to core"