factory: Raise error if new() is called more than once per class
connection.py: Assert port is int.