The screenwriter and director of “Beginners” created a film about love. It is loosely based on his relationship with his own father, who came out as gay late in life.