fixed python3 support in spooler decorators