Instructions:
Install Servo Blaster... (I tried with RPIO but when the GC kicks in or the CPU is allocated to something else, the servo behaves in a weird way.
http://cihatkeser.com/servo-control-with-raspberry-pi-in-5-minutes-or-less/
Home security system in Python using Raspberry Pi 2