Use 'if x' instead of 'if len(x) > 0' (PEP8)