Here is my code :
Animals/__init__.py
from Mammals import Mammals
from Bird import Bird
Animals/Mammals.py
class Mammals(object):
    def __init__(self):
        self.members = ['Tiger', 'Elephant','Wild Cat']
    def print_members(self):
        for member in self.members :
            print('this is a member :' + member)
Animals/Bird.py
class Bird(object):
    def __init__(self):
        self.birds = ['sparrow','robbin','duck']
    def print_members(self):
        print('printing birds in bird class')
        for bird in self.birds:
            print('this is a bird '+ bird)
test.py
from Animals import Mammals, Bird
mam = Mammals()
bird = Bird()
mam.print_members()
bird.print_members()     
I have installed Python 3 (MacOSX) and I am using it with virtualenv. This code works fine with 2.7, but it doesn't work with python3.5. It always gives ImportError: No module named Mammals
 
     
    