Don't require pygame

I'm using PyTMX with SDL2 instead of pygame and there seem to be very few obstacles to doing so. After this change pygame is only imported when pygame-specific functions are called.