Pythonic tweaks.