Check the apply calls respect the hierarchy
PEP8
Merge pull request #18 from rizar/check_apply

Check that apply calls respect the hierarchy