Python script for use with XBMC