Add deprecation warnings to old-style Location classes

probably just a nit, but maybe we'd rather use `isinstance` to check the class rather than just equality (so we can get inherited stuff too)?