Fixed signals in Python 3.4

todo: description

Many thanks go to Antoine Pitrou for helping me with all that weakref magic.