Merge pull request #2 from snigam3112/dev

BayesianModel.py - pending = add_obsevation, remove_observation ; and fi...
made pep8 compliant
corrected isinstance calls
Fixed and made states() and parents() as generators. Remaining: add_observation, remove_observation.