My code is running very slowly when doing certain calculations. It is tracking the ISS then finding out the nearest timezone then the local time there. It is running so slow it is just about functioning. I have tried testing on several different Raspberry PIs (all pi 3s). The code running on the PI3 was slow so one the 1b it will be much slower. I need to find a way without breaking the rules to speed up the code a lot. Please Help thanks in advance. Here is the Code:

Just quickly looking at your code I've identified a line which is quite computationally costly inside your main loop;
Try moving this line outside of your while loop, it doesn't need to be run every time - you just need to call the compute method every time.

Ah so, well done, so this might be your first encounter with code profiling! If you go onto be a games developer this kind of thing becomes your life. There are special tools out there which let you identify the slow parts of your code so that you can concentrate on improving them.

For now though I have a possible suggestion which is to look into multi-threading. This lets you have two (or more) branches of code running simultaneously and what one usually does is this situation is push all the slow stuff you need to do onto another thread and just let it run slowly. Thus not impacting the main "root" thread of your code where you're, for example, updating the screen with an animation.