Found this thread:
As suggested there, I've added the #LyX line to all my .py files and have managed to upload my build succesfuly to Itunes Connect
Oops! Looks like something went wrong!
You may only upload PNG, JPG, or GIF files ()