It appears to be more Pythonic to say: 
if offsets is None: