bugfix for utils.fromkeypairs handling new version python