Set appropriate stacklevel values for deprecation warnings.
Merge pull request #583 from berkerpeksag/add-stacklevel-parameter

Set appropriate stacklevel values for deprecation warnings.