Initial commit

A lot of code taken from my pydashie fork, so that it works.