fix multiple warnings
- Use the undeprecaded sympy objects and imports
- Avoid potentially creating an array of arrays with different shape
- Properly use pytest.warns
- Update dependencies to match upcoming Kwant
- Silence the unfixable warnings from old scipy and sympy in pytest.
Edited by Anton Akhmerov