[master] Use python script to deduplicate PATH variable