in reply to WARNINGS

Post the relevant parts of the code and tell us how you're invoking the script. Otherwise, all you're going to get is a lot of guessing.