Fix compatibility with new python3-opengl

Also move the Python plugins to a 'python' subdir to make
local development and testing easier. With this change one
can put this repo on the device and run things like this
to use the uninstalled plugins from the local repo.

mendel@jumbo-jet:~/edgetpuvision$ GST_PLUGIN_PATH=. python3 -m edgetpuvision.detect_server [...]

Bug: 161288651
Change-Id: Ia5135e62a914cf68f7347344b72952ec25764590
diff --git a/debian/rules b/debian/rules
index f30fb7e..fb65e3f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,4 +10,4 @@
 override_dh_install:
 	dh_install
 	install -d $(DESTDIR)
-	install -g 0 -o 0 plugins/*.py $(DESTDIR)
+	install -g 0 -o 0 plugins/python/*.py $(DESTDIR)
diff --git a/plugins/glbox.py b/plugins/python/glbox.py
similarity index 97%
rename from plugins/glbox.py
rename to plugins/python/glbox.py
index 21b6f3b..5458a02 100644
--- a/plugins/glbox.py
+++ b/plugins/python/glbox.py
@@ -200,9 +200,9 @@
 
         glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, self.vbo_indices_buffer);
         glBindBuffer(GL_ARRAY_BUFFER, self.positions_buffer);
-        glVertexAttribPointer.baseFunction(a_position, 2, GL_FLOAT, GL_FALSE, 0, None)
+        glVertexAttribPointer.wrappedOperation(a_position, 2, GL_FLOAT, GL_FALSE, 0, None)
         glBindBuffer(GL_ARRAY_BUFFER, self.texcoords_buffer);
-        glVertexAttribPointer.baseFunction(a_texcoord, 2, GL_FLOAT, GL_FALSE, 0, None)
+        glVertexAttribPointer.wrappedOperation(a_texcoord, 2, GL_FLOAT, GL_FALSE, 0, None)
         glEnableVertexAttribArray(a_position)
         glEnableVertexAttribArray(a_texcoord)
 
diff --git a/plugins/glsvgoverlaysink.py b/plugins/python/glsvgoverlaysink.py
similarity index 98%
rename from plugins/glsvgoverlaysink.py
rename to plugins/python/glsvgoverlaysink.py
index 25de535..3c0f903 100644
--- a/plugins/glsvgoverlaysink.py
+++ b/plugins/python/glsvgoverlaysink.py
@@ -456,7 +456,7 @@
         self.shader.compile_attach_stage(frag_stage)
         self.shader.link()
 
-        self.u_transformation = glGetUniformLocation.baseFunction(
+        self.u_transformation = glGetUniformLocation.wrappedOperation(
             self.shader.get_program_handle(), 'u_transformation')
 
         a_position = self.shader.get_attribute_location('a_position')
@@ -479,9 +479,9 @@
 
         glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, self.vbo_indices);
         glBindBuffer(GL_ARRAY_BUFFER, self.positions_buffer);
-        glVertexAttribPointer.baseFunction(a_position, 2, GL_FLOAT, GL_FALSE, 0, None)
+        glVertexAttribPointer.wrappedOperation(a_position, 2, GL_FLOAT, GL_FALSE, 0, None)
         glBindBuffer(GL_ARRAY_BUFFER, self.texcoords_buffer);
-        glVertexAttribPointer.baseFunction(a_texcoord, 2, GL_FLOAT, GL_FALSE, 0, None)
+        glVertexAttribPointer.wrappedOperation(a_texcoord, 2, GL_FLOAT, GL_FALSE, 0, None)
         glEnableVertexAttribArray(a_position)
         glEnableVertexAttribArray(a_texcoord)
 
diff --git a/plugins/glsvgoverlaysrc.py b/plugins/python/glsvgoverlaysrc.py
similarity index 100%
rename from plugins/glsvgoverlaysrc.py
rename to plugins/python/glsvgoverlaysrc.py