parse_currency(currency) = Unitful.uparse(currency, unit_context=UnitfulAssets)

pyname(o::PyObject) = o.__class__.__name__

function check_pytype(x, o::PyObject)
    if string(nameof(x)) != pyname(o) 
        error("Type mismatch: $(string(nameof(x))) != $(pyname(o))")
    end
    return nothing
end
