PySnot: Improve update_ticket and add tests