Python >= 3.9, improve macOS and general
- Require Python 3.9 due to caching of commands
- greatly improve macOS, including option for low accuracy without sudo--previously, sudo was required. Sudo greatly improves location accuracy on macOS
- generally improve Pythonic nature of code