Best legal status for freelancing in Peru

EDIT:

I discovered afterwards that this question was already asked on Can working on tourist visas be a problem?, though not specifically for Peru.