For the HERE API there's a Python API wrapper but I've not tried this.
There's a good list of other Public Transport APIs here on GitHub.
I see you're in the UK. The UK Government published a data set called NaPTAN which had detailed public transportation data of routes, access points, timetables etc.
However, it's been several years since I last looked ...