<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new_payment_query_listener(sender, order=None, payment=None, **kwargs):
 """ Here we fill only two obligatory fields of payment, and leave signal handler """

    payment.amount = order.total
    payment.currency = order.currency

    logger.debug("new_payment_query_listener, amount=%s, currency=%s",
                 payment.amount, payment.currency)