B2STAGE service core code for EUDAT project: Data Staging Script