use os.path.expanduser(path) to expand user inputs