Fix copyright year
Use isinstance instead of type()
Remove unused wait_for_state function