Added helper method to find the root package for a Python library