gh-36745: pep8 for axiom and sympy interfaces
pep8 cleanup for the 2 modified files
### :memo: Checklist
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
URL: https://github.com/sagemath/sage/pull/36745
Reported by: Frédéric Chapoton
Reviewer(s): Kwankyu Lee, Matthias Köppe