'Uploads a local file to Google Cloud Storage.
:param bucket: The bucket to upload to.
:type bucket: string
:param object: The object name to set when uploading the local file.
:type object: string
:param filename: The local file path to the file to be uploaded.
:type filename: string
:param mime_type: The MIME type to set when uploading the file.
:type mime_type: string'

def upload(self, bucket, object, filename, mime_type='application/octet-stream'):

    service = self.get_conn()
    media = MediaFileUpload(filename, mime_type)
    response = service.objects().insert(bucket=bucket, name=object, media_body=media).execute()
