Pythonic version of dep checker