Use implicit boolean evaluation for lists:

if not oldrevdeplst[p]:
  ...