code samples and lessons in python