Python Substring A List