Fix syntax, and copy some stuff from IFF exporter

Don't use line continuation characters
Copy the get_first_texture_slot function from IFF to PAS exporter
Copy some code from IFF to PAS exporter