@when('I modify the contact from the list')
def modify_contact(app, random_contact):
    contact = Contact(firstname='New firstname')
    app.contact.modify_contact_by_id(random_contact.id, contact)
@when('I modify the contact from the list')
def modify_contact(app, random_contact):
    contact = Contact(firstname='New firstname')
    app.contact.modify_contact_by_id(random_contact.id, contact)