Fixed up python cmake file to not include layer_factory.cpp while compilig.