According to the Thing Description specification it is possible to create a set of security definitions under securityDefinitions field and refer to them in the security field. However, this kind of TD is not currently supported by wot-py, although it is absolutely valid TD.