Move python stuff before JS