moved Subject from python to c

This is just preview with questions (I don't know how else I can write comments to code). All tests in Hawkey and dnf pass, memory leaks not checked yet and some issues need to be discussed. In final version it will be with right indentation and separated between multiple commits.