Regarding your advice of reading our of code. There is a website that shows you code examples indexed from github for your code search.
I always forget the name, but it always appear when searching by code in Google.
It is very useful to see working examples from real life open source projects.
Unfortunately the search in github code via the web site is not very good.
I always get cloning the projects and using grep.
I think is this one: programcreek
Now I realize that it covers also Python, Java and Scala.
This is an example of a search for pytz.timezone
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.