added small delay around python connection