Python script to check motion on camera

Did you read this post in the thread you linked? It describes what you do verbatim.