Fix get_type not returning a int
Merge pull request #2 from FlyingNimbus/patch-1

Fix get_type not returning a int