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.
Merge pull request #2 from gauravtoshniwal1989/patch-1

Update __init__.py