#!/usr/bin/python
import subprocess
out, err = subprocess.Popen('gsettings list-relocatable-schemas | grep compiz',shell=True, stdout=subprocess.PIPE).communicate()
out = out.splitlines()
out2,err2,schemalist=[],[],[]
for x in out:
n="gsettings list keys "+x+":/org/compiz/profiles/unity/"
out2, err2 += subprocess.Popen(n,shell=True, stdout=subprocess.PIPE).communicate()
schemalist.append(x)
out2=out2.splitlines()
print out2
print schemalist