Fixed the "Bad error request" error.

By redefining self.parts it gets rid of all the previously added parts which cause the error. Worked for me after I added those two lines.
Merge pull request #6 from Ryangr0/patch-1

Fixed the "Bad error request" error.