fix unkown class exceptions and remove prints

replaced print with puts
fix wrong interpretation of sshkey result
fix wrong exception namespace