Xiongmai IP Camera Simple API in Python.
Ported from @667bdrm's Gist (Perl script at https://gist.github.com/667bdrm/209bf33b2d04b08bb318).