doc: added python setup and started deduplication of replace definitions