Added 'tags' field to devices api (+ pep8 cleanup).