Refactor target options
Revive pycc
Adapt old pycc