Converts money amount in string to a Decimal object.

        With the default arguments, the format is expected to be
        ``-38.500,00``, where dots separate thousands and comma the decimals.

        Args:
            thousand_sep: Separator for thousands.
            decimal_sep: Separator for decimals.

        Returns:
            A ``Decimal`` object of the string encoded money amount.

def money(s, thousand_sep=".", decimal_sep=","):
        """Converts money amount in string to a Decimal object.

        With the default arguments, the format is expected to be
        ``-38.500,00``, where dots separate thousands and comma the decimals.

        Args:
            thousand_sep: Separator for thousands.
            decimal_sep: Separator for decimals.

        Returns:
            A ``Decimal`` object of the string encoded money amount.
        """
        s = s.replace(thousand_sep, "")
        s = s.replace(decimal_sep, ".")
        return Decimal(s)