You could fast path it by checking if the reference count of the list is `1` and avoid taking the lock in that case, I think.
I'd assume that importing any sort of module level variable would imply an increment of the counter, but unsure.
(admittedly it's python so it's so slow it's probably not even measurable)