Removed unused imports.

One of these functions didn't exist anymore.
Fixed #20028 -- Made atomic usable on callable instances.

Thanks Anssi for the report.