add python dependency compile fixes