Always return a key from Keys.import, use IO.popen instead of temp files
Ditch tempfiles in favour of IO.popen
Complete rewrite using only IO.popen