Currently only accepts a path and errors on a file https://github.com/algorithmiaio/algorithmia-python/blob/master/Algorithmia/datafile.py#L95-L102