def init_callback(sender):
    """
    Callback function to take action on hashcat signal.
    Action is to write the latest cracked hashes
    """
    logger.debug('Callback Triggered: Init')
    status_dict = status(sender)
    logger.debug('Hashcat status: {}'.format(status_dict))
    write_result(sender)

    Callback function to take action on hashcat signal.
    Action is to write the latest cracked hashes
    
crackq/run_hashcat.py