Number eight seed Juan Martin del Potro was made to work hard for his victory in the first round of the Estoril Open in Portugal as he was pushed to three sets by Pedro Sousa.