How to convert yaml to dictionary in Python