Optimization - prefect_related('attachments') in get_queued()
Fix Python 3 test