I think the way it should work is:
- try to create the folder examples
- if fail show warning and try on home dir
- if fails raise exception

also make sure your code is pep8 compliant