print("Error: [...]") -> log.error("[...]")
Refactor handle_profiles(...) a bit.

- Fix trying to set the default config file for a profile even when the profile's creation fails.
- Extract some code into a new function.
- Upon exiting return exit code 1 if an error occured.
Add __init__.py to third_party/