Update for to resolve sysntax error on last update, partially tested and confirmed working on Raspberry Pi