The best Python developer in the world could be toiling away in their parent's basement when not working for substandard pay for some game company. Being the best at something does not equal income and freedom.
Provide value to someone (or, better, many someones), is the best way towards better finances. You can save aggressively and retire. The more value you provide, the more you can financially win.
Again, no need to be the best. Probably not even top x%. The big secret nobody tells folks: Everyone is winging it.
If you want to master a craft, you could leverage that craft to provide value. But it is not some one to one magical coupling.
I'm reminded of: is it better to be good or lucky? I'd say lucky, and luck favors the prepared. I was lucky enough to practice coding and solve a few people's problems with it and when a recruiter sent me to a promising startup, I was able to get in early. Lucky me Through very hard work, I kept up, grew professionally, and thrived in that environment. Again, lucky me. And through more luck (coupled with the skills of those running everything), the org IPO'd. Again, lucky me. At this point in my career, as long as there is a tech sector working with distributed systems, I should be able to obtain gainful employment (again, lucky me). I'm still not entirely sure how to provide value outside of that circle, but if I were to figure it out, I could likely achieve financial freedom much faster.
Sorry for the rambling. Just woke up. Time to get back to the grind (which I enjoy fwiw).