Redo pycopy to use a CopySession object, and use that in copycmd. Fully works now!