BUG: properly serializing IDs
STY: pep8 :disappointed_relieved:
Merge pull request #353 from wasade/issue_264

BUG: properly serializing IDs