Here's how I'd approach the Python programming for QA.
Following these steps would get you pretty much comfortable with the Python.
Where to learn those things?
You can learn few of these things from youtube. Some of the other advanced solutions can be learned through Envato tutorials, Linkedin and Lynda learning.