Please, do not use is to compare to True. In this case, we would use something like:

    if copy:
         something