Added missing warnings import

There is a warnings call around line 732, but as warnings is not imported, this fails.
Merge pull request #2757 from iMichka/v1.3.x

Added missing warnings import