Motion detection tool using Python and PyCUDA