Make code work across all Python versions with six.