code cleanup: remove _askForGPGKeyImport()

not refenced anywhere
code cleanup: remove _fdSetNonblock()

not referenced anywhere
code cleanup: remove attach_mock()

not referenced anywhere