remove double import warnings

seems that warnings is already imported at the top level of the module