Some housekeeping-task management stuff in python