Added flake as dev req
Now the inspect function raises an error when argument is not a model