def fromWei(self, amount, unit='ether'):
    if (Web3 is None):
        self.raise_error(NotSupported, details='ethereum web3 methods require Python 3: https://pythonclock.org')
    if (amount is None):
        return amount
    return float(Web3.fromWei(int(amount), unit))
def fromWei(self, amount, unit='ether'):
    if (Web3 is None):
        self.raise_error(NotSupported, details='ethereum web3 methods require Python 3: https://pythonclock.org')
    if (amount is None):
        return amount
    return float(Web3.fromWei(int(amount), unit))