Thank you to cdunklau on Freenode's python channel for helping