In Wrapper.py and stub.py there is a line # Todo: dirty hack related to the element conditions["target"]. This special case exists for when a new stub is created based on a class (as opposed to an object). We should find a way to remove this dirty hack.