core: updated taskcleaner to run from external python code

Change-Id: Ibb894849bc732640719216fb0c308d410aa17a81
Signed-off-by: Alex Lourie <alourie@redhat.com>