Algorithms and artificial intelligence can now be used to write screenplays – but will they entertain human viewers?