According to Homer, Apollo encountered and killed the Python when he was looking for a place to establish his shrine.
ɐkˈoːɹdɪŋ tə hˈoʊmɚ, ɐpˈɑːloʊ ɛŋkˈaʊntɚd ænd kˈɪld ðə pˈaɪθən wɛn hiː wʌz lˈʊkɪŋ fɚɹə plˈeɪs tʊ ɪstˈæblɪʃ hɪz ʃɹˈaɪn.