Changed the definition of the _generate_setup() method to declare some default values, as this used to happen in __init__ before.