Minor: PEP8 style
More PEP8 comment style
using unshift(<>) instead of splice(0,0,<>)