https://stackoverflow.com/questions/26503509/is-pypi-case-sensitive
As per this, not only are pip package names case-insensitive, but also hyphens/underscores/dots are considered equal.
So replace the to_lowercase() function with normalize_package_name().