Try to import update_wrapper from functools first