fixed bug in event_loop.add_writer #pep3156