First working version of 'foscam.py' script.