Fix docstring and snippet import style in portage module