Cleanup of code in scipy.constants