finish py-learn fixes#

python is not as good as git