General purpose python3 utilities