PEP8: Indent blocks with 4 spaces.  Once `resample` is written, you could call it here passing arguments through. If you want to warn the user, use a `print` statement prior to `return` (as written, this silently returns the user a string instead of an array).