Remove unused import
Fix critical bug (typo in C type reference)
Move import to top of file

We shouldn't be importing within functions.