when set_ticket is called the cached address to the handoff directory should ideally be cleared too

when set_ticket is called the cached address to the handoff directory (handoff_dir) should be cleared (None)

Minor change:

code line broken at 80 characters for better readability and conformance with PEP8