Update __init__.py

Defaults should come at the starting of the function, since the function returns at different points during the execution and variables like "is_simple_device" are not defined by then.