python code from following MOOC's