@classmethod
def from_dict(cls, crypto):
    new_crypto = cls.__new__(cls)
    for key in crypto:
        setattr(new_crypto, key, crypto[key])
    return new_crypto
@classmethod
def from_dict(cls, crypto):
    new_crypto = cls.__new__(cls)
    for key in crypto:
        setattr(new_crypto, key, crypto[key])
    return new_crypto