for x in myList
is looping over elements which are of list type, which does not have lstrip method.
You will have to adapt like this :
myList = [[x[0].lstrip()] for x in myList if len(x) > 0]
In my example, It will only lstrip if len of list is bigger than 0. In case list is empty, it will be ignored