You have a yahoo_weather
package, which contains a yahoo_weather
module, which contains your class. Import the module:
from yahoo_weather import yahoo_weather
after which you can use yahoo_weather.YWeather()
.
Alternatively, add a line:
from yahoo_weather import YWeather
in the __init__.py
file in the yahoo_weather/
directory, then use your posted code as is.