My current test setup has a 12 volt IR led array, but it doesn't have very good range and it requires 12 volts, so its going away in favor of the high intensity IR led. It runs on 3.7 volts and it illuminates nearly as far as the pir sensor can detect . I only need a few feet and I will have that range now.
I will have the battery, charger and converter in a few days. Updated schematic to follow after trials.
Most of the scripting i did was shell. The python I used was for accessing the gpio via the raspberry-gpio-python module: http://sourceforge.net/projects/raspberry-gpio-python . My scripts are on github: https://github.com/visualkev/pi-monitor.