rm profile, make linker py3 compatible