Moving to a better math library, adding move and rotate commands

You should read the rest of https://docs.python.org/2/faq/programming.html#what-are-the-best-practices-for-using-import-in-a-module

"You may also want to move imports into a function if the modules are only ever used in that function."

In fact this import is only use to work around a bug in the SDK and isn't going to be included in the text, since I'm hoping the bug will be fixed in the next SDK version.