Refactor package installation for states
Add wget as Python depenendency