What do you call someone who writes play scripts?

a playwright