2 lines between top-level definitions.
Prefix booleans with "is."
Factor-out data fetching.
Factored-out CLI options parsing.
Use braces in if-else, as per Google's style guide.
Clearly return final p.
Use full name.