invalid literal for int() with base 10: 'Magic'