It's like you read my mind - I was just looking into using something like this today! Thank you!
If you have trouble getting the python version working I was sent a compiled version that worked for me. Also has custom resolution options to fit into your video memory. 1080p was a little too much for my 8GB card. ..